﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DeliverGoodsManagement_AddExpressBillTemplate" Codebehind="AddExpressBillTemplate.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
      <h2>添加物流单打印模板</h2>
        <div class="menu_bg"><asp:Button ID="btnSave" runat="server" CssClass="input_button" Text="保存" OnClick="btnSave_Click" /></div>
        <div class="menu_bg3"><asp:DropDownList ID="dropTraner" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropTraner_SelectedIndexChanged">
        </asp:DropDownList></div>
        <div class="juli"><asp:DataList ID="dlistExpressBillTemplate" runat="server" Width="204px" OnItemCommand="dlistExpressBillTemplate_ItemCommand" CellPadding="0" OnCancelCommand="dlistExpressBillTemplate_CancelCommand" OnEditCommand="dlistExpressBillTemplate_EditCommand" OnUpdateCommand="dlistExpressBillTemplate_UpdateCommand">
            <HeaderTemplate>
                <table class="tb5" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3" width="200">
                            模板名称
                        </td>
                        <td class="zt3" width="200">
                            模板说明
                        </td>
                        <td class="zt3">
                        删除
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                    <tr class="z2">
                        <td width="200" align="center" class="bk_left">
                            <asp:Label ID="lblTemplateName" runat="server" Text='<%# Eval("Template_Name")%>'></asp:Label>&nbsp;
                        </td>
                        <td width="200" align="center" class="bk_middle">
                            <asp:Label ID="lblTemplateDescription" runat="server" Text='<%# Eval("Template_Description")%>'></asp:Label>&nbsp;
                        </td>
                        <td align="center" class="bk_middle">
                            <asp:Button ID="btnEdit" runat="server"  CssClass="input_button" Text="修改" CommandName="Edit" />
                            <asp:Button ID="btnDelete" runat="server" CssClass="input_button" Text="删除" CommandName="del" />
                            
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <EditItemTemplate>
                <table width="600" border="0" cellspacing="0" cellpadding="0">
                    <tr class="z2">
                        <td width="200" align="center" class="bk_left">
                            <asp:TextBox ID="txtTemplateName" runat="server" Text='<%# Eval("Template_Name")%>'></asp:TextBox>&nbsp;
                        </td>
                        <td width="200" align="center" class="bk_middle">
                            <asp:Label ID="lblTemplateDescription" runat="server" Text='<%# Eval("Template_Description")%>'></asp:Label>&nbsp;
                        </td>
                        <td align="center" class="bk_middle">
                            
                            <asp:Button ID="btnUpdate" runat="server" CssClass="input_button" Text="更新" CommandName="update" CommandArgument='<%# Eval("Template_Id")%>' />
                            <asp:Button ID="btnCancel" runat="server" CssClass="input_button" Text="取消" CommandName="cancel" />
                        </td>
                    </tr>
                </table>
            </EditItemTemplate>
        </asp:DataList></div>
        <div class="juli">
         <table class="tb5" border="0" cellpadding="0" cellspacing="1">
          <tr class="z2">
            <td>模板名称：</td><td><asp:TextBox ID="txtTemplateName" runat="server"></asp:TextBox></td>
          </tr>
          <tr class="z2">
            <td>模板说明：</td><td><asp:TextBox ID="txtTemplateDescription" runat="server" Height="144px" TextMode="MultiLine" Width="279px"></asp:TextBox></td>
          </tr>
          <tr class="z2">  
        　　<td></td><td><asp:Button ID="btnAddTemplate" runat="server" CssClass="input_button1" Text="添加模板" OnClick="btnAddTemplate_Click" /></td>
          </tr>
         </table>
        　　　　  </div></div>
    </form>
</body>
</html>